﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LX.Core.Auth
{
    public class Principal : IPrincipal
    {
        public static readonly Principal Anonymous;
        public static readonly Principal AutoService;
        public static readonly Principal SA;

        static Principal()
        {
            Anonymous = new Principal("Anonymous");
            AutoService = new Principal("AutoService");
            SA = new Principal("SA");
        }


        private string Id;
        internal Principal(string id)
        {
            Id = id;
        }


        public string GetId()
        {
            return Id;
        }

        public List<IPrincipal> GetParents()
        {
            return null;
        }
    }
}
